/**
 * Created by qiushaohua on 15-2-10.
 */
define([
    'app',
    'mCustomScrollbar'
], function (app) {

    var deps = [];

    function directive() {
        return {
            link: function ($scope, elem) {
                // http://manos.malihu.gr/jquery-custom-content-scroller/
                elem.mCustomScrollbar({
                    autoHideScrollbar: true,
                    theme: 'minimal-dark'
                });
            }
        };
    }

    directive.$inject = deps;
    return app.lazy.directive('fcScrollBar', directive);
});